The purpose of this demo is to show all the features of XFoxEvents and how it can be used to make a better Mac interface.
This demo also provides a workable skeleton for a simple FBM application.
The demo starts with a Browse window, with button bar across the top. The buttons correspond to various commands that can be entered.
(This illustrates one way of using the MouseDown filter).
Double-clicking on a Browse item, or pressing Enter, will open that record for editing. (The Browse filter in operation).
When the edit screen is shown, you can press Return or Tab to move between fields. Pressing Enter is equivalent to clicking on the OK button and your changes will be saved as the screen is replaced by a Browse window. (The Return2Tab filter in operation to make the Return key jump between fields).
Using the MouseDown filter in this fashion removes the need to use Fox
buttons. Not using buttons means the Modified() function will actually mean something (normally it is useless as it is set to .T. by the button used to OK the screen!).
See the accompanying XFoxEvents.readme for comprehensive documentation of the XFoxEvents calls.
NOTE: where the XFoxEvents.readme file refers to the file "XFoxEvents", you may use ResEdit to open the file xfeDem.rsrc which contains the CODE and XFCN resources that would normally be in XFoxEvents. (The PICT resource in xfeDem.rsrc is just for the demo).